<?php
    require '../config.php';
    $catalog = $_POST['catalog'];
    $title = $_POST['title'];
	$content = $_POST['content'];
	$image = $_POST['image'];
	$addDate = date('Y-m-d');

	$result = mysql_query("insert into article(cid,title,content,image,addDate) values('".$catalog."','".$title."','".$content."','".$image."','".$addDate."')");
    echo $result;	
?>
